package cloud.tianai.ram.policy.client.common.exception;

import cloud.tianai.ram.policy.common.model.dto.Match;
import cloud.tianai.ram.policy.common.exception.RamException;
import cloud.tianai.ram.policy.common.model.dto.Action;
import lombok.Getter;
/**
 * @Author: 天爱有情
 * @date 2022/3/23 16:10
 * @Description 权限命中异常
 */
public class RamHitException extends RamException {
    @Getter
    private Match match;
    private Action action;
    public RamHitException(Action action, Match match) {
        this.action = action;
        this.match = match;
    }

    @Override
    public String toString() {
        return "RamHitException{" +
                "match=" + match +
                ", action=" + action +
                '}';
    }
}
